package lab02.test16;

public class Test16 {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        System.out.println("输入x的值：");
        double x = s.nextDouble();
        System.out.println("输入y的值：");
        double y=s.nextDouble();
        Add A=new Add();
        Minus M=new Minus();
        Multiply m=new Multiply();
        Division D=new Division();
        System.out.println("加法："+A.arithmetic(x,y));
        System.out.println("减法："+M.arithmetic(x,y));
        System.out.println("乗法："+m.arithmetic(x,y));
        System.out.println("除法："+D.arithmetic(x,y));
    }
}
